CopyTo Method (Int32, T[], Int32, Int32)

Wintellect PowerCollections

Collapse imageExpand ImageCollapseAll imageExpandAll imageDropDown imageDropDownHover imageCopy imageCopyHover image
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Copies a range of elements from the list to array, starting at arrayIndex.

Namespace: Wintellect.PowerCollections
Assembly:  PowerCollections (in PowerCollections.dll)

Syntax

C#
public virtual void CopyTo(
	int index,
	T[] array,
	int arrayIndex,
	int count
)
Visual Basic (Declaration)
Public Overridable Sub CopyTo ( _
	index As Integer, _
	array As T(), _
	arrayIndex As Integer, _
	count As Integer _
)
Visual C++
public:
virtual void CopyTo (
	int index, 
	array<T>^ array, 
	int arrayIndex, 
	int count
)

Parameters

index
Int32
The starting index in the source list of the range to copy.
array
array<T>[]()
The array to copy to. This array must have a size that is greater than or equal to Count + arrayIndex.
arrayIndex
Int32
The starting index in array to copy to.
count
Int32
The number of items to copy.

See Also